package com.wmm.common.exception;

import com.wmm.common.enums.EWarning;

public class BusinessException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private EWarning warning;
	
	public BusinessException(EWarning warning) {
		super(warning.getName());
		this.warning = warning;
	}

	public EWarning getWarning() {
		return warning;
	}
}
